Israel Ors' HuffmanAlgorithm Documentation

HuffmanAlgorithm.Extract Method (Stream, Char[])

Build a frequency table and Huffman tree and extract the archive.

public Stream Extract(
   Stream Data,
   char[] Password
);

Parameters

Data
The data streem to shrink
Password
A Key to open the archive with, to mark as "passward less" assign null instead.

Return Value

The data stream to extract, but if wrong password error occur and the WrongPassword event is handeled, it's returns null.

Remarks

The given stream must be readable, seekable and it's length must exceed zero. The given stream must be archived stream of the right type.

Exceptions

Exception Type Condition
Exception On attempt to extract data that wasn't coded with the HuffmanAlgorithm class, Or on attempt to extract a password protected stream\file with the wrong password. (If the WrongPassword event is been handeled by the user the 2nd exception is'nt relevant).

See Also

HuffmanAlgorithm Class | JadBenAutho.Tools Namespace | HuffmanAlgorithm.Extract Overload List